// async.js
//<script src='a.js'></script>
//<script src='b.js'></script>
//<script src='c.js'></script>

//阻塞的模拟
// var i = 0
// while(true) {
// 	i++
// }

var c = 0

function printIt() {
	console.log(c)
}

function plus(callback) {
	setTimeout(function() {
		c += 1
		callback()	
	}, 1000)
	
}

//异步执行
plus(printIt)

